package com.warsong.flumedemo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author: lcw
 * @date 2021/1/4 17:59
 */
@RestController()
public class FlumeTestController {

  private static final Logger LOGGER = LoggerFactory.getLogger(FlumeTestController.class);


  @GetMapping(value = "/test")
  public void test() {
    for (int i = 0; i < 10; i++) {
      LOGGER.info("这是测试是第" + i + "条信息");
    }
    try {
      Thread.sleep(10000);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}

